package com.demo.bio.client;

import java.net.Socket;
import java.util.Date;

public class AioClient {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1", 3333);
            while (true) {
                socket.getOutputStream().write((new Date() + "：hello world").getBytes());
                System.out.println("发送完成");
                Thread.sleep(2000);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
